package net.area80.utils
{
	import flash.display.Sprite;

	public class DrawingUtils
	{
		
		public static function getRectSprite (w:Number,h:Number,color:uint=0x000000,x:Number=0,y:Number=0):Sprite
		{
			var spr:Sprite = new Sprite();
			spr.graphics.beginFill(color,1);
			spr.graphics.drawRect(0,0,w,h);
			spr.cacheAsBitmap = true;
			spr.x = x;
			spr.y = y;
			return spr;
		}
	}
}